package com.azt.api.pojo;

import com.azt.pojo.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;

@Table(name = "u_coin_record")
public class CoinRecord extends BaseEntity {
	
	@Column(name="companyId")
	private Integer companyId;

	@Column(name="userId")
	private Integer userId;

	@Column(name="operateType")
	private Integer operateType;

	@Column(name="ruleCode")
	private String ruleCode;

	@Column(name="descr")
	private String descr;

	@Column(name="orderNum")
	private String orderNum;

	@Column(name="batchId")
	private String batchId;

	@Column(name="payAmount")
	private Double payAmount;

	@Column(name="coinAmount")
	private Double coinAmount;

	@Column(name="operateid")
	private Integer operateid;
	
	@Transient
	private String companyName;
	
	@Transient
	private String adminName;

	@Transient
	private String userName;
	
    public String getAdminName() {
		return adminName;
	}


	public void setAdminName(String adminName) {
		this.adminName = adminName;
	}

	

	public CoinRecord() {

	}

	public CoinRecord(CoinRule rule) {
		this.operateType = rule.getOperateType();
		this.ruleCode = rule.getRuleCode();
		this.descr = rule.getTitle();
	}

    public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public Integer getOperateType() {
        return operateType;
    }

    public void setOperateType(Integer operateType) {
        this.operateType = operateType;
    }

	public String getRuleCode() {
		return ruleCode;
	}

	public void setRuleCode(String ruleCode) {
		this.ruleCode = ruleCode;
	}

	public String getDescr() {
		return descr;
	}

	public void setDescr(String descr) {
		this.descr = descr;
	}

	public String getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(String orderNum) {
		this.orderNum = orderNum;
	}

	public String getBatchId() {
		return batchId;
	}

	public void setBatchId(String batchId) {
		this.batchId = batchId;
	}

	public Double getPayAmount() {
		return payAmount;
	}

	public void setPayAmount(Double payAmount) {
		this.payAmount = payAmount;
	}

	public Double getCoinAmount() {
		return coinAmount;
	}

	public void setCoinAmount(Double coinAmount) {
		this.coinAmount = coinAmount;
	}

	public Integer getOperateid() {
		return operateid;
	}

	public void setOperateid(Integer operateid) {
		this.operateid = operateid;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
}